#include "StdAfx.h"
#include "help.h"

// TODO, use the const defined in game.h instead
// can't figure out how to do this without getting
// help.obj : error LNK2005: "float * white" (?white@@3PAMA) already defined in game.obj
// I thought the #pragma once would take care of it
float w[4] = {1.f, 1.f, 1.f, 1.f};

void displayHelp(int step) {
	glMaterialfv( GL_FRONT, GL_AMBIENT_AND_DIFFUSE, w);
	float x = -1.;
	float y = .6;
	float lineHeight = .07;
	glRasterPos2f(x, y);
	printBitmapString("The object of the game is to fit your body's silhoutte inside of the white ");
	glRasterPos2f(x, y - lineHeight);
	printBitmapString("shapes that appear.");
	glRasterPos2f(x, y - lineHeight*3);
	printBitmapString("The clock in the top-right will indicate how much time you have left.");
	glRasterPos2f(x, y - lineHeight*5);
	printBitmapString("If a shape has spheres inside of it, you must touch them to advance.");
		glRasterPos2f(x, y - lineHeight*7);
	printBitmapString("The bar below will show how close you are to getting a new life. When the ");
		glRasterPos2f(x, y - lineHeight*8);		
	printBitmapString("bar is full, you get a bonus life. If you miss a shape, you lose a life. ");

	
		glRasterPos2f(x, y - lineHeight*11);
	printBitmapString("Press the spacebar to begin. Press the 'h' key to return to this screen.");
	glRasterPos2f(x, y - lineHeight*13);
	printBitmapString("Further keys:");
	glRasterPos2f(x, y - lineHeight*14);
	printBitmapString("q    Quit game");
	glRasterPos2f(x, y - lineHeight*15);
	printBitmapString("f    Go fullscreen");
	glRasterPos2f(x, y - lineHeight*16);
	printBitmapString("x    Restart game");
	glRasterPos2f(x, y - lineHeight*17);
	printBitmapString("r    Recalibrate vision");
	glRasterPos2f(x, y - lineHeight*18);
	printBitmapString("m    Mute background sound");

	
}